import { View } from '@tarojs/components'
import classNames from 'classnames'
import styles from './index.less'

const CircleButton = (props) => {
  const { className, children, onClick, ...rest } = props

  return (
    <View {...rest} className={classNames(styles['circle-button'], className)} onClick={onClick}>
      <View className={styles['circle-button__inner']}>
        {children}
      </View>
    </View>
  )
}

export default CircleButton